"""
__project__='伍娟'
__file_name__=='第四次作业'
__author__='wwj'
__time__='2021/4/5 21:04'
__product_name__=PyCharm
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃        ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""
"""
num = 1
my_sum = 0
while num <= 100:
    if num % 2 == 1:
        print(num)
        my_sum += num
    num += 1
print("计算累加值：%d" % my_sum) 
"""
# num = 5
# l= 1
# r= 1
# j = 1
# while r <= num:
#     j = 1
#     while j <= r:
#         print("*", end='')
#         j += 1
#     print()
#     r += 1
# #print("计算累加值：%d" % my_sum)
# while True:
#     pass # 
"""
打印如下内容：
*
**
***
****
****
***
**
*
"""
l = 1
j = 1
while l <= 9:
    if l // 5 == 0:
        j = 1
        while j <= l:
            print("*", end='')
            j += 1
        l += 1
        print()
    else:
        j = 1
        while j <= (9 - l):
            print("*", end='')
            j += 1
        l += 1
        print()





